<div class="sidebar_detail">
	<div class="tab-header">
		<div class="title">
			<i class="fa fa-home"></i>指派车辆
		</div>
		<div class="tool" id="submitBtns">
			<!--<button type="button" class="btn btn-default"
				ng-click="addSupport.save()" ng-required="addSupport.entity.cars.length == 0">
				<i class="fa fa-outdent"></i>保存
			</button>-->
			<button type="button" class="btn btn-default"
					ng-click="addSupport.save()" ng-disabled="addOrderForm.$invalid || addSupport.entity.cars.length == 0">
				<i class="fa fa-outdent"></i>保存
			</button>
		</div>
	</div>
	<!-- Nav tabs -->
	<ul class="nav nav-tabs" role="tablist" style="clear: both">
		<li class="active">
			<a data-target="#reserveBaseInfo" data-toggle="tab">基本信息</a>
		</li>
		<li>
			<a data-target="#reserveCarInfo" data-toggle="tab">车辆信息</a>
		</li>
	</ul>
	<!-- Tab panels -->
	<div class="tab-content">
		<!--此处存放各tab页div-->
		<div class="tab-pane active" id="reserveBaseInfo">
			<form id="addOrderForm" name="addOrderForm">
				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">
								<span class="notNull">*</span>组织名称:
							</label>
							<div class="col-md-8 col-sm-10">
								<input name="userDeptName" type="text"
									   class="form-control" ng-model="addSupport.entity.userDeptName" required>
								<span class="glyphicon glyphicon-ok form-control-feedback"
									  ng-show="addOrderForm.userDeptName.$valid"></span>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">
								<span class="notNull">*</span>车辆类型:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="typeName" name="typeName" type="text"
									   class="form-control">
								<input name="carType" type="hidden"
									   class="form-control" ng-model="addSupport.entity.carType" required>
								<span class="glyphicon glyphicon-ok form-control-feedback"
									  ng-show="addOrderForm.carType.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">
								<span class="notNull">*</span>数量:
							</label>
							<div class="col-md-8 col-sm-10">
								<input name="carNumber" type="number" class="form-control" ng-model="addSupport.entity.carNumber" required>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addOrderForm.carNumber.$valid"></span>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-sm-4 control-label">
								<span class="notNull">*</span>用车日期:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="useDate" name="useDate" type="text"
									   class="form-control" ng-model="addSupport.entity.useDate" required>
								<span
										class="glyphicon glyphicon-ok form-control-feedback"
										ng-show="addOrderForm.useTime.$dirty && addOrderForm.useTime.$valid"></span>
							</div>
						</div>
					</div>
					<div class="col-md-6 form-horizontal">
						<div class="form-group">
							<label class="col-md-4 col-sm-2 control-label">
								<span class="notNull">*</span>还车日期:
							</label>
							<div class="col-md-8 col-sm-10">
								<input id="returnDate" name="returnDate" type="text" min="0"
									   class="form-control" ng-model="addSupport.entity.returnDate"
									   required>
								<span
										class="glyphicon glyphicon-ok form-control-feedback"
										ng-show="addOrderForm.returnDate.$dirty && addOrderForm.returnDate.$valid"></span>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-2 col-sm-2 control-label">
								<span class="notNull">*</span>出发地址:
							</label>
							<div class="col-md-10 col-sm-10">
								<textarea name="startAddress" class="form-control" rows="5" ng-model="addSupport.entity.startAddress" ng-maxlength="300" required></textarea>
								<span class="error_tips" ng-show="addTimetableForm.startAddress.$error.maxlength">最多不能超过300个字符！</span>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addOrderForm.startAddress.$valid"></span>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12 form-horizontal" style="margin-left: -26px;">
						<div class="form-group">
							<label class="col-md-2 col-sm-2 control-label">
								<span class="notNull">*</span>目的地址:
							</label>
							<div class="col-md-10 col-sm-10">
								<textarea name="endAddress" class="form-control" rows="5" ng-model="addSupport.entity.endAddress" ng-maxlength="300" required></textarea>
								<span class="error_tips" ng-show="addTimetableForm.endAddress.$error.maxlength">最多不能超过300个字符！</span>
								<span class="glyphicon glyphicon-ok form-control-feedback" ng-show="addOrderForm.endAddress.$valid"></span>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="tab-pane" id="reserveCarInfo" style="padding: 4px 16px;">
			<div class="row">
				<div class="col-md-12" style="padding: 0 1px;">
					<div id="CarTeamOrderDetailGirdDivId"></div>
				</div>
			</div>
		</div>
	</div>
</div>